package com.lkl.chat.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 星火配置类
 */
@Component //注入容器
@ConfigurationProperties(prefix = "spark")
@Data
public class SparkConfig {
    private  String appId;
    private  String apiSecret;
    private  String apiKey;
    private  String modelVersion;
    private List<HostInfo> hostInfos;
    private HostInfo defaultHostInfo;

    @Data
    public static class HostInfo {
        private  String host;
        private  String path;
        private  String domain;
    }

}
